//
//  UIViewController+PYInteractivePopGesture.m
//  catuncel
//
//  Created by Jim on 2017/12/13.
//  Copyright © 2017年 Jim. All rights reserved.
//

#import "UIViewController+PYInteractivePopGesture.h"

#import <objc/runtime.h>

static char interactivePopGestureRecognizerEnableKey;

@implementation UIViewController (PYInteractivePopGesture)

- (void)setInteractivePopGestureRecognizerEnable:(BOOL)enable{
    NSNumber *value = [NSNumber numberWithBool:enable];
    objc_setAssociatedObject(self, &interactivePopGestureRecognizerEnableKey, value, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (BOOL)getInteractivePopGestureRecognizerEnable{
    NSNumber *value = objc_getAssociatedObject(self, &interactivePopGestureRecognizerEnableKey);
    return [value boolValue];
}

@end
